package cn.cymym.service;

import cn.cymym.dao.UserDao;
import cn.cymym.dao.UserDaoImpl;
import cn.cymym.domain.User;

public class UserService {
	UserDao userDao = new UserDaoImpl();
	public void register(User user) {
		userDao.register(user);
	}
	public long isExsit(String tel) {
		return userDao.isExsit(tel);
	}
	public User getTelAndPwd(String tel) {
		return userDao.getTelAndPwd(tel);
	}
	public void updateUserInfo(User user) {
		 userDao.updateUserInfo(user);
	}
}
